DBWin is a public domain debugging program that can be used in conjunction
with an undocumented IDAPI setting.  This only works for the 16 bit data
base engine.

Add the following to your WIN.INI file.
[idapi]
sqltrace=-1
;{1 = less verbose, 0 = trace off (defualt)}

Start DBWin and then the application who's SQL you want to trace.  This does
not work with internal file formats such as DBF.  It does work with ODBC
data sources.

